#include "BreachControl.h"

BreachControl::BreachControl(bool direction) {
	// Use requires() here to declare subsystem dependencies
	// eg. requires(chassis);
	Direction = direction;
}

// Called just before this Command runs the first time
void BreachControl::Initialize() {

}

// Called repeatedly when this Command is scheduled to run
void BreachControl::Execute() {
	if (Direction){
	CommandBase::breach->ControlBreachState(CommandBase::breach->kBreachUp);
	} else {
	CommandBase::breach->ControlBreachState(CommandBase::breach->kBreachDown);
	}
}

// Make this return true when this Command no longer needs to run execute()
bool BreachControl::IsFinished() {
	return true;
}

// Called once after isFinished returns true
void BreachControl::End() {
	
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void BreachControl::Interrupted() {
}
